package com.asion.qkan.ui.presenter;

import com.asion.qkan.entry.NewBean;
import com.asion.qkan.ui.contract.SheQuNewContract;

/**
 * Created by Administrator on 2016/10/17 0017.
 */

public class SheQuNewPresenter extends SheQuNewContract.Presenter {

    @Override
    public void onStart() {
        super.onStart();
    }

    @Override
    public void setSheNewQuDatas(int type) {
        mModel.getSheNewQuListDatas(type, new SheQuNewContract.OnSheQuNewGetListener() {
            @Override
            public void onSheQuSuccess(NewBean.DataBean bean) {
                mView.showDataSuccess(bean);
            }

            @Override
            public void onSheQuError(Throwable t) {
                mView.showDataError(t);
            }
        });
    }
}
